<?php 
header('content-type:text/html;charset=utf-8'); 
mysql_query("SET NAMES 'utf-8'");
$con = mysql_connect("127.0.0.1:3306","root","tdled2018");
 if (!$con) {  die('Could not connect: ' . mysql_error());
 } 
 mysql_select_db("my_db", $con);
 mysql_query("INSERT INTO Persons (FirstName, LastName, Age)  VALUES ('Peter', 'Griffin', '35')");
 mysql_query("INSERT INTO Persons (FirstName, LastName, Age)  VALUES ('Glenn', 'Quagmire', '33')");
 mysql_close($con);
 ?>